\hypertarget{guild__module__saver_8hpp}{}\doxysection{guild/module/guild\+\_\+module\+\_\+saver.hpp File Reference}
\label{guild__module__saver_8hpp}\index{guild/module/guild\_module\_saver.hpp@{guild/module/guild\_module\_saver.hpp}}


公会模块保存  


{\ttfamily \#include $<$cassert$>$}\newline
{\ttfamily \#include $<$sstream$>$}\newline
{\ttfamily \#include \char`\"{}base64/base64.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}guild/guild.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}log/service\+\_\+logger.\+hpp\char`\"{}}\newline
{\ttfamily \#include \char`\"{}orm/guild\+\_\+module\+\_\+orm.\+hpp\char`\"{}}\newline
{\ttfamily \#include \char`\"{}pool/service\+\_\+data\+\_\+pool\+\_\+op.\+hpp\char`\"{}}\newline
{\ttfamily \#include \char`\"{}redis/service\+\_\+redis\+\_\+fwd.\+hpp\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename Module $>$ }\\bool \mbox{\hyperlink{guild__module__saver_8hpp_a2b9acc8743d569a6a6d28c3078d0b50d}{guild\+\_\+service\+::detail\+::\+Save\+Guild\+Module}} (const std\+::string \&service\+\_\+name, const Module \&data, const guild\+\_\+id\+\_\+type guild\+\_\+id, const std\+::string \&module\+\_\+name)
\begin{DoxyCompactList}\small\item\em 同步保存公会模块 \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Module $>$ }\\bool \mbox{\hyperlink{guild__module__saver_8hpp_ae65c9d06783a6bb51b49b00dabf6c1aa}{guild\+\_\+service\+::detail\+::\+Save\+Guild\+Module\+Async}} (const std\+::string \&service\+\_\+name, const Module \&data, const guild\+\_\+id\+\_\+type guild\+\_\+id, const std\+::string \&module\+\_\+name, const redis\+\_\+handler\+\_\+type \&handler)
\begin{DoxyCompactList}\small\item\em 异步保存公会模块 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
公会模块保存 

\begin{DoxyDate}{Date}
2021/05/11 10\+:05
\end{DoxyDate}
\begin{DoxyAuthor}{Author}
harrybao (\href{mailto:harrybao@123u.com}{\texttt{ harrybao@123u.\+com}})
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
v1.\+0.\+0
\end{DoxyVersion}
\begin{DoxyCopyright}{Copyright}
Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
\end{DoxyCopyright}
\begin{DoxyParagraph}{history\+:}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\cellcolor{\tableheadbgcolor}\textbf{ Date }&\cellcolor{\tableheadbgcolor}\textbf{ Version }&\cellcolor{\tableheadbgcolor}\textbf{ Author }&\cellcolor{\tableheadbgcolor}\textbf{ Description }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\cellcolor{\tableheadbgcolor}\textbf{ Date }&\cellcolor{\tableheadbgcolor}\textbf{ Version }&\cellcolor{\tableheadbgcolor}\textbf{ Author }&\cellcolor{\tableheadbgcolor}\textbf{ Description }\\\cline{1-4}
\endhead
2021/05/11 10\+:05 &1.\+0.\+0 &harrybao &创建初始版本 \\\cline{1-4}
\end{longtabu}

\end{DoxyParagraph}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{guild__module__saver_8hpp_a2b9acc8743d569a6a6d28c3078d0b50d}\label{guild__module__saver_8hpp_a2b9acc8743d569a6a6d28c3078d0b50d}} 
\index{guild\_module\_saver.hpp@{guild\_module\_saver.hpp}!SaveGuildModule@{SaveGuildModule}}
\index{SaveGuildModule@{SaveGuildModule}!guild\_module\_saver.hpp@{guild\_module\_saver.hpp}}
\doxysubsubsection{\texorpdfstring{SaveGuildModule()}{SaveGuildModule()}}
{\footnotesize\ttfamily template$<$typename Module $>$ \\
bool guild\+\_\+service\+::detail\+::\+Save\+Guild\+Module (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{service\+\_\+name,  }\item[{const Module \&}]{data,  }\item[{const \mbox{\hyperlink{guild_8h_a1c8a386d9790b05f2665f3e786b8d983}{guild\+\_\+id\+\_\+type}}}]{guild\+\_\+id,  }\item[{const std\+::string \&}]{module\+\_\+name }\end{DoxyParamCaption})}



同步保存公会模块 


\begin{DoxyTemplParams}{Template Parameters}
{\em Serializer} & 序列化处理类模板 \\
\hline
{\em Serializer\+::\+Data\+Type} & 需要序列化的数据结构类模板 \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em service\+\_\+name} & 公会服务名 \\
\hline
{\em data} & 需要序列化的数据结构类 \\
\hline
{\em guild\+\_\+id} & 公会id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 保存成功 

false 保存失败 
\end{DoxyReturn}
\mbox{\Hypertarget{guild__module__saver_8hpp_ae65c9d06783a6bb51b49b00dabf6c1aa}\label{guild__module__saver_8hpp_ae65c9d06783a6bb51b49b00dabf6c1aa}} 
\index{guild\_module\_saver.hpp@{guild\_module\_saver.hpp}!SaveGuildModuleAsync@{SaveGuildModuleAsync}}
\index{SaveGuildModuleAsync@{SaveGuildModuleAsync}!guild\_module\_saver.hpp@{guild\_module\_saver.hpp}}
\doxysubsubsection{\texorpdfstring{SaveGuildModuleAsync()}{SaveGuildModuleAsync()}}
{\footnotesize\ttfamily template$<$typename Module $>$ \\
bool guild\+\_\+service\+::detail\+::\+Save\+Guild\+Module\+Async (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{service\+\_\+name,  }\item[{const Module \&}]{data,  }\item[{const \mbox{\hyperlink{guild_8h_a1c8a386d9790b05f2665f3e786b8d983}{guild\+\_\+id\+\_\+type}}}]{guild\+\_\+id,  }\item[{const std\+::string \&}]{module\+\_\+name,  }\item[{const \mbox{\hyperlink{service__redis__client_8hpp_a879938d13a74dc6d2b0b8b0b4a20b03e}{redis\+\_\+handler\+\_\+type}} \&}]{handler }\end{DoxyParamCaption})}



异步保存公会模块 


\begin{DoxyTemplParams}{Template Parameters}
{\em Serializer} & 序列化处理类模板 \\
\hline
{\em Serializer\+::\+Data\+Type} & 需要序列化的数据结构类模板 \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em service\+\_\+name} & 公会服务名 \\
\hline
{\em data} & 需要序列化的数据结构类 \\
\hline
{\em guild\+\_\+id} & 公会id \\
\hline
{\em handler} & redis执行回调函数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 保存成功 

false 保存失败 
\end{DoxyReturn}
